package com.xo.mall.server.impl;

import co.elastic.clients.elasticsearch.ElasticsearchClient;
import co.elastic.clients.elasticsearch._types.query_dsl.QueryStringQuery;
import co.elastic.clients.elasticsearch.core.SearchRequest;
import co.elastic.clients.elasticsearch.esql.ElasticsearchEsqlClient;
import com.xo.common.Result.ResultResponse;
import com.xo.common.pojo.dto.req.EsSearchReqDto;
import com.xo.mall.mapper.PmsSearchMapper;
import com.xo.mall.server.PmsSearchService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.management.Query;


@Service
@Slf4j
public class PmsSearchServiceImpl implements PmsSearchService {

    @Resource
    private PmsSearchMapper pmsSearchMapper;

    @Resource
    private ElasticsearchClient elasticsearchClient;


    @Override
    public ResultResponse<Object> esSearch(EsSearchReqDto esSearchReqDto) {
        SearchRequest searchRequest = new SearchRequest.Builder().build();
        elasticsearchClient.search()
    }
}


